package at.jku.cp.mir;

import org.json.simple.JSONAware;
import org.json.simple.JSONObject;

public class Tag implements JSONAware
{

	protected String name;
	protected int count;

	public Tag(String name, int count)
	{
		super();
		this.name = name;
		this.count = count;
	}

	public int getCount()
	{
		return count;
	}

	public String getName()
	{
		return name;
	}

	@Override
	public String toString()
	{
		return this.name;
	}

	public String toJSONString()
	{
		JSONObject obj = new JSONObject();
		obj.put("name", name);
		obj.put("count", count);
		return obj.toJSONString();
	}

}
